package org.jeecg.modules.online.cgform.converter.p011b;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.jeecg.common.system.vo.DictModel;
import org.jeecg.common.util.SpringContextUtils;
import org.jeecg.modules.online.cgform.converter.p010a.ForeseeConvert;
import org.jeecg.modules.online.cgform.entity.OnlCgformField;
import org.jeecg.modules.online.cgform.service.IOnlCgformFieldService;
import org.jeecg.modules.online.cgform.utils.CgformUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/* renamed from: org.jeecg.modules.online.cgform.converter.b.g */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/modules/online/cgform/converter/b/g.class */
public class LinkTableConverter extends ForeseeConvert {

    /* renamed from: d */
    private static final Logger f191d = LoggerFactory.getLogger(LinkTableConverter.class);

    /* renamed from: c */
    protected IOnlCgformFieldService f192c;

    public LinkTableConverter(OnlCgformField onlCgformField) {
        String dictTable = onlCgformField.getDictTable();
        String dictText = onlCgformField.getDictText();
        String dictField = onlCgformField.getDictField();
        ArrayList arrayList = new ArrayList();
        try {
            String str = dictText.split(CgformUtil.f233E)[0];
            this.f192c = (IOnlCgformFieldService) SpringContextUtils.getBean(IOnlCgformFieldService.class);
            List<Map<String, Object>> queryLinkTableDictList = this.f192c.queryLinkTableDictList(dictTable, dictText, dictField);
            if (queryLinkTableDictList != null && queryLinkTableDictList.size() > 0) {
                for (Map<String, Object> map : queryLinkTableDictList) {
                    arrayList.add(new DictModel(CgformUtil.m360a(map, dictField), CgformUtil.m360a(map, str)));
                }
            }
        } catch (Exception e) {
            f191d.error("关联记录组件 导入导出数据翻译失败", e.getMessage());
        }
        this.f175b = arrayList;
    }
}
